package com.bookocean.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户徽章获得记录PO类
 * 
 * @author BookOcean
 * @since 2024-01-01
 */
@Data
@TableName("user_badge_po")
public class UserBadgePO {

    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 徽章ID
     */
    @TableField("badge_id")
    private Long badgeId;

    /**
     * 获得时间
     */
    @TableField("earned_at")
    private LocalDateTime earnedAt;

    /**
     * 是否显示
     */
    @TableField("is_visible")
    private Boolean isVisible;
}
